package cn.broadsense.common.core.domain.entity;

import cn.broadsense.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author huangjinshi
 * @description 区域数据
 * @createDate 2024-09-11 16:09:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("区域数据")
public class SysArea extends BaseEntity {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("自增主键")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("上级区域ID")
    private Long parentId;

}
